]> dgit.raspbian.org Git - dovecot.git/commit
[PATCH 6/7] lib-sieve: Log a warning when cumulative CPU exceeds the limit
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 3 Jun 2026 12:25:38 +0000 (12:25 +0000)
committerNoah Meyerhans <noahm@debian.org>
Wed, 16 Sep 2026 19:06:35 +0000 (15:06 -0400)
commitb058ab0668949cb4d8076f6ee70d042d41281aaf
tree754eae2bfc3c502820a9d6ed7de75b9a533c0b54
parent3409775ecf982174bd2ae619614e4b4c5c31a545
[PATCH 6/7] lib-sieve: Log a warning when cumulative CPU exceeds the limit

sieve_binary_record_resource_usage() returned FALSE when the script's
cumulative CPU time crossed sieve_max_cpu_time, but the only log line
on that path was a debug-level "Updated cumulative resource usage"
emitted on every recording, with no signal at the actual disable
transition. Operators had to infer the disable from later "Failed to
open script ... (cumulative resource limit exceeded)" errors on
subsequent deliveries.

Emit a warning at the transition point, including the cumulative CPU
usage that triggered it.

Gbp-Pq: Name 0006-lib-sieve-Log-a-warning-when-cumulative-CPU-exceeds-.patch
pigeonhole/src/lib-sieve/sieve-binary.c